package com.ysd.repository;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.ysd.entity.Modules;

public interface ModulesRepository extends JpaRepository<Modules, Integer> ,JpaSpecificationExecutor<Modules> {
	@Query(value="select * from  modules  where parentId=?1" ,nativeQuery=true)
	@Transactional
	List<Modules>  findByIdfindcheheren(Integer  modeulesid);
}
